package com.sale.system.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sale.common.mybatis.core.mapper.BaseMapperPlus;
import com.sale.system.domain.SysAccounts;
import com.sale.system.domain.SysAuxiliaryData;
import com.sale.system.domain.dto.SysAuxiliaryDataDto;
import com.sale.system.domain.dto.SysAuxiliaryUnitDateDetailDto;
import com.sale.system.domain.dto.SysTheDropDto;
import com.sale.system.domain.vo.SysAuxiliaryDataVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: YSL
 * @Date: 2023/7/13 10:24
 * @Desc: 辅助资料 数据层
 */
public interface SysAuxiliaryDataMapper extends BaseMapperPlus<SysAuxiliaryDataMapper, SysAuxiliaryData, SysAuxiliaryData> {

    /**
     * 根据id查询辅助属性详情
     * @param auxiliaryId
     * @return
     */
    SysAuxiliaryDataDto getAuxiliaryData(Long auxiliaryId);

    /**
     * 查询辅助属性列表
     * @param page
     * @param sysAuxiliaryDataVo
     * @return
     */
    Page<SysAuxiliaryDataDto> selectAuxiliaryDataList(@Param("page") Page<SysAuxiliaryDataDto> page, @Param("sysAuxiliaryDataVo") SysAuxiliaryDataVo sysAuxiliaryDataVo);

    /**
     * 查询辅助属性列表
     * @param
     * @return
     */
    List<SysAuxiliaryDataDto> selectAuxiliaryDtoList(String categoryType);

    /**
     * 单计量单位下拉
     * @return
     */
    List<SysTheDropDto> selectUnitList();

    /**
     * 其他支出类别
     * @return
     */
    List<SysTheDropDto> selectDisburseList();


    /**
     * 其他收入类别
     * @return
     */
    List<SysTheDropDto> selectIncomeList();
}
